package com.shensi.adminCollect.domain.station;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shensi.adminCollect.domain.station.vo.FinanceStatement;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @description finance_statements_station
 * @author
 * @date 2023-07-04
 */
@Getter
@Setter
@ApiModel("finance_statements_enterprise")
@TableName("finance_statement_enterprise")
public class FinanceStatementEnterprise extends FinanceStatement implements Serializable {

    private static final long serialVersionUID = 1L;

    public static FinanceStatementEnterprise of(FinanceStatement statement){
        if (statement == null) {
            return null;
        }
        FinanceStatementEnterprise financeStatementEnterprise = new FinanceStatementEnterprise();
        financeStatementEnterprise.setId(statement.getId());
        financeStatementEnterprise.setStationId(statement.getStationId());
        financeStatementEnterprise.setEnterpriseId(statement.getEnterpriseId());
        financeStatementEnterprise.setCountDate(statement.getCountDate());
        financeStatementEnterprise.setOilPayableAmount(statement.getOilPayableAmount());
        financeStatementEnterprise.setOilDiscountAmount(statement.getOilDiscountAmount());
        financeStatementEnterprise.setOilBalancePaymentAmount(statement.getOilBalancePaymentAmount());
        financeStatementEnterprise.setOilWithdrawalAmount(statement.getOilWithdrawalAmount());
        financeStatementEnterprise.setNotOilPayableAmount(statement.getNotOilPayableAmount());
        financeStatementEnterprise.setNotOilDiscountAmount(statement.getNotOilDiscountAmount());
        financeStatementEnterprise.setNotOilWithdrawalAmount(statement.getNotOilWithdrawalAmount());
        financeStatementEnterprise.setIntegralPayAmount(statement.getIntegralPayAmount());
        financeStatementEnterprise.setChargeAmount(statement.getChargeAmount());
        financeStatementEnterprise.setChargeGiveAmount(statement.getChargeGiveAmount());
        financeStatementEnterprise.setChargeWithdrawalAmount(statement.getChargeWithdrawalAmount());
        financeStatementEnterprise.setQrCodeAmount(statement.getQrCodeAmount());
        financeStatementEnterprise.setQrCodeWithdrawalAmount(statement.getQrCodeWithdrawalAmount());
        financeStatementEnterprise.setCashAmount(statement.getCashAmount());
        financeStatementEnterprise.setIntegralAmount(statement.getIntegralAmount());
        financeStatementEnterprise.setWithdrawalAmount(statement.getWithdrawalAmount());
        financeStatementEnterprise.setCreateBy(statement.getCreateBy());
        financeStatementEnterprise.setCreateTime(statement.getCreateTime());
        financeStatementEnterprise.setUpdateBy(statement.getUpdateBy());
        financeStatementEnterprise.setUpdateTime(statement.getUpdateTime());
        financeStatementEnterprise.setDelFlag(statement.getDelFlag());
        return financeStatementEnterprise;

    }

}
